<?php
namespace App\Http\Middleware; use Closure; class CORS { public function handle($sp62e4cd, Closure $sp530731) { if (config('app.debug')) { $spcb575a = array('Access-Control-Allow-Origin' => $sp62e4cd->header('Origin'), 'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, DELETE', 'Access-Control-Allow-Headers' => 'Content-Type, Accept, Authorization, Cookie, X-Requested-With, X-XSRF-TOKEN', 'Access-Control-Allow-Credentials' => 'true'); if ($sp62e4cd->isMethod('OPTIONS')) { return response()->make('', 200, $spcb575a); } $sp3e8d87 = $sp530731($sp62e4cd); foreach ($spcb575a as $sp308327 => $spa60c0f) { $sp3e8d87->headers->set($sp308327, $spa60c0f); } return $sp3e8d87; } return $sp530731($sp62e4cd); } }